We have a large amount of users that we are trying to audit who is in an escalation policy, who has notification rules set up with a phone, and who is attached to a service. From what I understand, I need to query the https://api.pagerduty.com/users/*/contact_methods API endpoint to return contact information. The only way to query this endpoint is by having the users id string to pass through.
I see the string exists as part of some urls when querying https://api.pagerduty.com/users endpoint for all users but there doesn’t appear to be an easy way to extract this value for querying against PagerDuty.
Is there an easy way to map a user email to this Id for better querying? Or is there a way to query a users information via email address instead of this random string of characters that mean nothing outside of PagerDuty? All of our audits go based on the users name or their email and as of yet I haven’t found a good way to convert/map these emails to PagerDuty ids and manually using the UI to check 700 users contact methods is not a good use of time.
Thank you in advance!